Be safe against stray booleans
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 Feb 2015 22:30:10 +0000 (17:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 1 Feb 2015 22:30:10 +0000 (17:30 -0500)
Since gboolean is a typedef for int, the compiler won't complain
about gdk_window_set_event_compression (w, 2). So, make it work.

https://bugzilla.gnome.org/show_bug.cgi?id=742566

gdk/gdkwindow.c

index 974c43241d898dc2f096e9583a4b13db05b27ba8..31033678dbdb45479d3167c33c4ed2675f3e9a8a 100644 (file)
@@ -9947,7 +9947,7 @@ gdk_window_set_event_compression (GdkWindow *window,
 {
   g_return_if_fail (GDK_IS_WINDOW (window));
 
-  window->event_compression = event_compression;
+  window->event_compression = !!event_compression;
 }
 
 /**